<?php   // $Id: fact_imp_multiple.php 246 2008-07-28 09:04:02Z pcoustillas $ ?>
<?php   
/*Copyright (C) 2003-2004 Guy Hendrickx
Licensed under the terms of the GNU  General Public License:http://www.opensource.org/licenses/gpl-license.php
File Authors:Guy Hendrickx
Modification : Pierre Coustillas*/

require_once("include/verif.php");
require_once("include/config/var.php");
require_once("include/language/$lang.php");
require_once("include/utils.php");
require_once("include/headers.php");

?>

<table class="page" align="center">
	<tr>
		<td class="page" align="center">
		<?php
		require_once("include/head.php");
		?>
		</td>
	</tr>
	<tr>
		<td class="page" align="center">
			<center>
			<?php
			if ($user_fact == "n") { 
			echo "<h1>$lang_facture_droit</h1>";
			exit;
			}

			$mois = date("m");
			$annee = date("Y");
			$jour = date("d");
			?>
				<form name="form_facture" method="post" target="_blank" action="fpdf/fact_pdf.php">
				<table class="boiteaction">
					<caption><?php echo $lang_facture_onclick; ?></caption>
					<tr>
						<td class='<?php echo couleur_alternee (); ?>'>
							<input type="hidden" name="user" value="adm" />
							<?php echo $lang_facture_date; ?>
						</td>
						<td class='<?php echo couleur_alternee (FALSE); ?>'>
							<input type="text" name="date_fact" value="<?php echo "$jour/$mois/$annee" ?>" readonly="readonly"/>
							<a href="#" onclick=" window.open('include/pop.calendrier.php?frm=form_facture&amp;ch=date_fact','calendrier','width=415,height=160,scrollbars=0').focus();"><img src="image/petit_calendrier.gif" alt="calendier" border="0"/></a>
						</td>
					</tr>
					<tr>
						<td class="submit" colspan="2">
							<input type="submit" name="Submit" value="<?php echo $lang_facture_impri; ?>" />
						</td>
					</tr>
				</table>
				</form>
			<hr/>
			</center>
		</td>
	</tr>
	<tr>
		<td>
			<?php
			require_once("include/bas.php");
			?>
		</td>
	</tr>

</table>
</body>
</html>